import { configureStore } from "@reduxjs/toolkit";
import { taskDateTimerSlice } from "./tasks/timer";
import { userSlice } from "./bases/user";
import { taskItemSlice } from "./tasks/item";

const store = configureStore({
  reducer: {
    timer: taskDateTimerSlice.reducer,
    user: userSlice.reducer,
    item: taskItemSlice.reducer,
  },
});

type RootState = ReturnType<typeof store.getState>;
type AppDispatch = typeof store.dispatch;

export { store, RootState, AppDispatch };
